import request from '@/utils/request';

const copyright = {
  list(params) {
    return request.get('/cgzh/softwareCopyright/list', {params});
  },
  add(data) {
    return request.post('/cgzh/softwareCopyright/add', data);
  },
  update(data) {
    return request.post('/cgzh/softwareCopyright/update', data);
  },
  get(id) {
    return request.get(`/cgzh/softwareCopyright/detail/${id}`);
  },
  delete(id) {
    return request.post(`/cgzh/softwareCopyright/delete/${id}`);
  },
  myList(params) {
    return request.get('/cgzh/softwareCopyright/myList', {params});
  },
  getAll(id) {
    return request.get(`/cgzh/softwareCopyright/allDetail/${id}`);
  },
  memberAddList(data) {
    return request.post(`/cgzh/softwareCopyrightMember/addList`, data);
  },
  memberListGet(id) {
    return request.get(`/cgzh/softwareCopyrightMember/getBySoftId/${id}`);
  },
  projectAddList(data) {
    return request.post(`/cgzh/softwareCopyrightProject/addList`, data);
  },
  projectListGet(id) {
    return request.get(`/cgzh/softwareCopyrightProject/getBySoftId/${id}`);
  },
  companyListGet(id){
    return request.get(`/cgzh/softwareCopyrightRight/getBySoftId/${id}`);
  },
  copyrightRightAddList(data){
    return request.post(`/cgzh/softwareCopyright/addSoftRightList`, data);
  },
  submit(data) {
    return request.post(`/cgzh/softwareCopyright/submit`, data);
  },
  benefitListGet(id){
    return request.get(`/cgzh/softwareCopyrightBenefit/getBySoftId/${id}`);
  },
  benefitAddList(data){
    return request.post(`/cgzh/softwareCopyrightBenefit/addList`, data);
  },
  getJoinList(params){
    return request.get('/cgzh/softwareCopyright/getJoinList', {params})
  }

}

export default copyright;
